<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>common_util: cutl::filepath Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">common_util<span id="projectnumber">&#160;1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>cutl</b></li><li class="navelem"><a class="el" href="classcutl_1_1filepath.html">filepath</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classcutl_1_1filepath-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">cutl::filepath Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>The class for file path operations.  
 <a href="classcutl_1_1filepath.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="filepath_8h_source.html">filepath.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a90b99a927a5f190972db9faae4ce10f3" id="r_a90b99a927a5f190972db9faae4ce10f3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a90b99a927a5f190972db9faae4ce10f3">filepath</a> (const std::string &amp;<a class="el" href="filepath_8h.html#abb5a2e2fa6cfd41e8de3515d12a36eb6">path</a>)</td></tr>
<tr class="memdesc:a90b99a927a5f190972db9faae4ce10f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new filepath object.  <br /></td></tr>
<tr class="separator:a90b99a927a5f190972db9faae4ce10f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d659c26e38a0d200b5023ebcfd6ae55" id="r_a9d659c26e38a0d200b5023ebcfd6ae55"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a9d659c26e38a0d200b5023ebcfd6ae55">filepath</a> (const <a class="el" href="classcutl_1_1filepath.html">filepath</a> &amp;other)</td></tr>
<tr class="memdesc:a9d659c26e38a0d200b5023ebcfd6ae55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new filepath object by copy.  <br /></td></tr>
<tr class="separator:a9d659c26e38a0d200b5023ebcfd6ae55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a067ef2d4e58b5746c375d16eccad55af" id="r_a067ef2d4e58b5746c375d16eccad55af"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcutl_1_1filepath.html">filepath</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a067ef2d4e58b5746c375d16eccad55af">operator=</a> (const <a class="el" href="classcutl_1_1filepath.html">filepath</a> &amp;other)</td></tr>
<tr class="memdesc:a067ef2d4e58b5746c375d16eccad55af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assign operator, assign a new filepath object by copy.  <br /></td></tr>
<tr class="separator:a067ef2d4e58b5746c375d16eccad55af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeaa1aaaec455559bf505ed3f36958576" id="r_aeaa1aaaec455559bf505ed3f36958576"><td class="memItemLeft" align="right" valign="top"><a id="aeaa1aaaec455559bf505ed3f36958576" name="aeaa1aaaec455559bf505ed3f36958576"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>~filepath</b> ()=default</td></tr>
<tr class="memdesc:aeaa1aaaec455559bf505ed3f36958576"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy the filepath object. <br /></td></tr>
<tr class="separator:aeaa1aaaec455559bf505ed3f36958576"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fb5387be3f6238b2934fd013197b841" id="r_a6fb5387be3f6238b2934fd013197b841"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a6fb5387be3f6238b2934fd013197b841">str</a> () const</td></tr>
<tr class="memdesc:a6fb5387be3f6238b2934fd013197b841"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the string of the filepath.  <br /></td></tr>
<tr class="separator:a6fb5387be3f6238b2934fd013197b841"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80c42c1066444e1f855ec99441e13f2c" id="r_a80c42c1066444e1f855ec99441e13f2c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcutl_1_1filepath.html">filepath</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a80c42c1066444e1f855ec99441e13f2c">join</a> (const std::string &amp;filename) const</td></tr>
<tr class="memdesc:a80c42c1066444e1f855ec99441e13f2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Join the current filepath with a new filename.  <br /></td></tr>
<tr class="separator:a80c42c1066444e1f855ec99441e13f2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35860a2df77cda9186771e9eb7652fa9" id="r_a35860a2df77cda9186771e9eb7652fa9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a35860a2df77cda9186771e9eb7652fa9">exists</a> () const</td></tr>
<tr class="memdesc:a35860a2df77cda9186771e9eb7652fa9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the filepath is exists.  <br /></td></tr>
<tr class="separator:a35860a2df77cda9186771e9eb7652fa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb5bd1e2ba786706f01ba33e98b7e7b9" id="r_adb5bd1e2ba786706f01ba33e98b7e7b9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#adb5bd1e2ba786706f01ba33e98b7e7b9">readable</a> () const</td></tr>
<tr class="memdesc:adb5bd1e2ba786706f01ba33e98b7e7b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the filepath is readable.  <br /></td></tr>
<tr class="separator:adb5bd1e2ba786706f01ba33e98b7e7b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accb293de49246e4147d4bf4ef87c4bfb" id="r_accb293de49246e4147d4bf4ef87c4bfb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#accb293de49246e4147d4bf4ef87c4bfb">writable</a> () const</td></tr>
<tr class="memdesc:accb293de49246e4147d4bf4ef87c4bfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the filepath is writable.  <br /></td></tr>
<tr class="separator:accb293de49246e4147d4bf4ef87c4bfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae9d22857d0e15b9ed3c3822fd2784bd" id="r_aae9d22857d0e15b9ed3c3822fd2784bd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#aae9d22857d0e15b9ed3c3822fd2784bd">executable</a> () const</td></tr>
<tr class="memdesc:aae9d22857d0e15b9ed3c3822fd2784bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the filepath is executable.  <br /></td></tr>
<tr class="separator:aae9d22857d0e15b9ed3c3822fd2784bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab0dce6ab5cec2ab5371262ba39c6d5c" id="r_aab0dce6ab5cec2ab5371262ba39c6d5c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28c">filetype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#aab0dce6ab5cec2ab5371262ba39c6d5c">type</a> () const</td></tr>
<tr class="memdesc:aab0dce6ab5cec2ab5371262ba39c6d5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the file type of the filepath.  <br /></td></tr>
<tr class="separator:aab0dce6ab5cec2ab5371262ba39c6d5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb0e1f3b2964206e602c0f2f0cd20e94" id="r_adb0e1f3b2964206e602c0f2f0cd20e94"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#adb0e1f3b2964206e602c0f2f0cd20e94">isfile</a> () const</td></tr>
<tr class="memdesc:adb0e1f3b2964206e602c0f2f0cd20e94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the filepath is a regular file.  <br /></td></tr>
<tr class="separator:adb0e1f3b2964206e602c0f2f0cd20e94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09672e7f8717dfbf9fc2cc8766b34fd5" id="r_a09672e7f8717dfbf9fc2cc8766b34fd5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a09672e7f8717dfbf9fc2cc8766b34fd5">isdir</a> () const</td></tr>
<tr class="memdesc:a09672e7f8717dfbf9fc2cc8766b34fd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the filepath is a directory.  <br /></td></tr>
<tr class="separator:a09672e7f8717dfbf9fc2cc8766b34fd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a359f2ae46d93e263517c173c36900830" id="r_a359f2ae46d93e263517c173c36900830"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a359f2ae46d93e263517c173c36900830">issymlink</a> () const</td></tr>
<tr class="memdesc:a359f2ae46d93e263517c173c36900830"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the filepath is a symbolic link.  <br /></td></tr>
<tr class="separator:a359f2ae46d93e263517c173c36900830"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa33e29aa8d9710b91bad420493f18601" id="r_aa33e29aa8d9710b91bad420493f18601"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#aa33e29aa8d9710b91bad420493f18601">dirname</a> () const</td></tr>
<tr class="memdesc:aa33e29aa8d9710b91bad420493f18601"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the parent directory of the filepath.  <br /></td></tr>
<tr class="separator:aa33e29aa8d9710b91bad420493f18601"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae6e9da74d378b70d42274d95d0f3d12" id="r_aae6e9da74d378b70d42274d95d0f3d12"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#aae6e9da74d378b70d42274d95d0f3d12">basename</a> () const</td></tr>
<tr class="memdesc:aae6e9da74d378b70d42274d95d0f3d12"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the filename or directory name of the filepath.  <br /></td></tr>
<tr class="separator:aae6e9da74d378b70d42274d95d0f3d12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a248fee180c2e60045067d9b88408d43b" id="r_a248fee180c2e60045067d9b88408d43b"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a248fee180c2e60045067d9b88408d43b">realpath</a> () const</td></tr>
<tr class="memdesc:a248fee180c2e60045067d9b88408d43b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the real path referenced by symbolic link.  <br /></td></tr>
<tr class="separator:a248fee180c2e60045067d9b88408d43b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0866810ee3ee44d2dd1e37ed711f119d" id="r_a0866810ee3ee44d2dd1e37ed711f119d"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a0866810ee3ee44d2dd1e37ed711f119d">abspath</a> () const</td></tr>
<tr class="memdesc:a0866810ee3ee44d2dd1e37ed711f119d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the absolute path of the filepath.  <br /></td></tr>
<tr class="separator:a0866810ee3ee44d2dd1e37ed711f119d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2188c2296ac0d3dae44cc5241ddaf801" id="r_a2188c2296ac0d3dae44cc5241ddaf801"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a2188c2296ac0d3dae44cc5241ddaf801">extension</a> () const</td></tr>
<tr class="memdesc:a2188c2296ac0d3dae44cc5241ddaf801"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the extension of the filepath.  <br /></td></tr>
<tr class="separator:a2188c2296ac0d3dae44cc5241ddaf801"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a4a6d26c1f843ac1d55ea6b5279e04949" id="r_a4a6d26c1f843ac1d55ea6b5279e04949"><td class="memItemLeft" align="right" valign="top">static char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutl_1_1filepath.html#a4a6d26c1f843ac1d55ea6b5279e04949">separator</a> ()</td></tr>
<tr class="memdesc:a4a6d26c1f843ac1d55ea6b5279e04949"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the path separator of the current os platform.  <br /></td></tr>
<tr class="separator:a4a6d26c1f843ac1d55ea6b5279e04949"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The class for file path operations. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a90b99a927a5f190972db9faae4ce10f3" name="a90b99a927a5f190972db9faae4ce10f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90b99a927a5f190972db9faae4ce10f3">&#9670;&#160;</a></span>filepath() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cutl::filepath::filepath </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a new filepath object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>file path string </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9d659c26e38a0d200b5023ebcfd6ae55" name="a9d659c26e38a0d200b5023ebcfd6ae55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d659c26e38a0d200b5023ebcfd6ae55">&#9670;&#160;</a></span>filepath() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cutl::filepath::filepath </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcutl_1_1filepath.html">filepath</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a new filepath object by copy. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>other filepath object </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a0866810ee3ee44d2dd1e37ed711f119d" name="a0866810ee3ee44d2dd1e37ed711f119d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0866810ee3ee44d2dd1e37ed711f119d">&#9670;&#160;</a></span>abspath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cutl::filepath::abspath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the absolute path of the filepath. </p>
<dl class="section return"><dt>Returns</dt><dd>std::string the absolute path of the filepath. </dd></dl>

</div>
</div>
<a id="aae6e9da74d378b70d42274d95d0f3d12" name="aae6e9da74d378b70d42274d95d0f3d12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae6e9da74d378b70d42274d95d0f3d12">&#9670;&#160;</a></span>basename()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cutl::filepath::basename </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the filename or directory name of the filepath. </p>
<dl class="section return"><dt>Returns</dt><dd>filename or directory name </dd></dl>

</div>
</div>
<a id="aa33e29aa8d9710b91bad420493f18601" name="aa33e29aa8d9710b91bad420493f18601"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa33e29aa8d9710b91bad420493f18601">&#9670;&#160;</a></span>dirname()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cutl::filepath::dirname </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the parent directory of the filepath. </p>
<dl class="section return"><dt>Returns</dt><dd>parent directory path </dd></dl>

</div>
</div>
<a id="aae9d22857d0e15b9ed3c3822fd2784bd" name="aae9d22857d0e15b9ed3c3822fd2784bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae9d22857d0e15b9ed3c3822fd2784bd">&#9670;&#160;</a></span>executable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cutl::filepath::executable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the filepath is executable. </p>
<dl class="section return"><dt>Returns</dt><dd>true means executable, false means not executable. </dd></dl>

</div>
</div>
<a id="a35860a2df77cda9186771e9eb7652fa9" name="a35860a2df77cda9186771e9eb7652fa9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35860a2df77cda9186771e9eb7652fa9">&#9670;&#160;</a></span>exists()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cutl::filepath::exists </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the filepath is exists. </p>
<dl class="section return"><dt>Returns</dt><dd>true means the filepath is exists, otherwise not exists. </dd></dl>

</div>
</div>
<a id="a2188c2296ac0d3dae44cc5241ddaf801" name="a2188c2296ac0d3dae44cc5241ddaf801"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2188c2296ac0d3dae44cc5241ddaf801">&#9670;&#160;</a></span>extension()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cutl::filepath::extension </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the extension of the filepath. </p>
<dl class="section return"><dt>Returns</dt><dd>extension with dot </dd></dl>

</div>
</div>
<a id="a09672e7f8717dfbf9fc2cc8766b34fd5" name="a09672e7f8717dfbf9fc2cc8766b34fd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09672e7f8717dfbf9fc2cc8766b34fd5">&#9670;&#160;</a></span>isdir()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cutl::filepath::isdir </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the filepath is a directory. </p>
<dl class="section return"><dt>Returns</dt><dd>true means directory, false means not directory. </dd></dl>

</div>
</div>
<a id="adb0e1f3b2964206e602c0f2f0cd20e94" name="adb0e1f3b2964206e602c0f2f0cd20e94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb0e1f3b2964206e602c0f2f0cd20e94">&#9670;&#160;</a></span>isfile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cutl::filepath::isfile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the filepath is a regular file. </p>
<dl class="section return"><dt>Returns</dt><dd>true mena regular file, false means not regular file. </dd></dl>

</div>
</div>
<a id="a359f2ae46d93e263517c173c36900830" name="a359f2ae46d93e263517c173c36900830"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a359f2ae46d93e263517c173c36900830">&#9670;&#160;</a></span>issymlink()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cutl::filepath::issymlink </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the filepath is a symbolic link. </p>
<dl class="section return"><dt>Returns</dt><dd>true means symbolic link, false means not symbolic link. </dd></dl>

</div>
</div>
<a id="a80c42c1066444e1f855ec99441e13f2c" name="a80c42c1066444e1f855ec99441e13f2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80c42c1066444e1f855ec99441e13f2c">&#9670;&#160;</a></span>join()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcutl_1_1filepath.html">filepath</a> cutl::filepath::join </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Join the current filepath with a new filename. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>the filename to be joined </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the new filepath object </dd></dl>

</div>
</div>
<a id="a067ef2d4e58b5746c375d16eccad55af" name="a067ef2d4e58b5746c375d16eccad55af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a067ef2d4e58b5746c375d16eccad55af">&#9670;&#160;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcutl_1_1filepath.html">filepath</a> &amp; cutl::filepath::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcutl_1_1filepath.html">filepath</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assign operator, assign a new filepath object by copy. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>other filepath object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>filepath&amp; the reference of the current filepath object </dd></dl>

</div>
</div>
<a id="adb5bd1e2ba786706f01ba33e98b7e7b9" name="adb5bd1e2ba786706f01ba33e98b7e7b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb5bd1e2ba786706f01ba33e98b7e7b9">&#9670;&#160;</a></span>readable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cutl::filepath::readable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the filepath is readable. </p>
<dl class="section return"><dt>Returns</dt><dd>true means readable, false means not readable. </dd></dl>

</div>
</div>
<a id="a248fee180c2e60045067d9b88408d43b" name="a248fee180c2e60045067d9b88408d43b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a248fee180c2e60045067d9b88408d43b">&#9670;&#160;</a></span>realpath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cutl::filepath::realpath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the real path referenced by symbolic link. </p>
<dl class="section note"><dt>Note</dt><dd>This function only works on Unix-like systems, not support on Windows.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>real path referenced by symbolic link or shortcuts </dd></dl>

</div>
</div>
<a id="a4a6d26c1f843ac1d55ea6b5279e04949" name="a4a6d26c1f843ac1d55ea6b5279e04949"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a6d26c1f843ac1d55ea6b5279e04949">&#9670;&#160;</a></span>separator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static char cutl::filepath::separator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the path separator of the current os platform. </p>
<dl class="section return"><dt>Returns</dt><dd>the path separator </dd></dl>

</div>
</div>
<a id="a6fb5387be3f6238b2934fd013197b841" name="a6fb5387be3f6238b2934fd013197b841"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fb5387be3f6238b2934fd013197b841">&#9670;&#160;</a></span>str()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string cutl::filepath::str </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the string of the filepath. </p>
<dl class="section return"><dt>Returns</dt><dd>the filepath </dd></dl>

</div>
</div>
<a id="aab0dce6ab5cec2ab5371262ba39c6d5c" name="aab0dce6ab5cec2ab5371262ba39c6d5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab0dce6ab5cec2ab5371262ba39c6d5c">&#9670;&#160;</a></span>type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="filetype_8h.html#a9d3ee53b2774c37cc5a17766507de28c">filetype</a> cutl::filepath::type </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the file type of the filepath. </p>
<dl class="section return"><dt>Returns</dt><dd>file type </dd></dl>

</div>
</div>
<a id="accb293de49246e4147d4bf4ef87c4bfb" name="accb293de49246e4147d4bf4ef87c4bfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accb293de49246e4147d4bf4ef87c4bfb">&#9670;&#160;</a></span>writable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cutl::filepath::writable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the filepath is writable. </p>
<dl class="section return"><dt>Returns</dt><dd>true menas writable, false means not writable. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/common_util/<a class="el" href="filepath_8h_source.html">filepath.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
